package com.jgp.sys.query;

/**
 * 项目   jgp
 * 作者   loufei
 * 时间   2017/8/15
 */
public class QueryFilter {
    private String name;
    private String title;
    private Operator operator;
    private String style;
    private Object value;
    
    public QueryFilter() {
    }
    
    public QueryFilter(String name, String operator) {
        this.name = name;
        this.operator = Operator.valueOf(operator);
    }

    public QueryFilter(String name, Operator operator) {
        this.name = name;
        this.operator = operator;
    }

    public QueryFilter( String name, String operator, Object value) {
        this.name = name;
        this.operator = Operator.valueOf(operator);
        this.value = value;
    }
    public QueryFilter( String name, Operator operator, Object value) {
        this.name = name;
        this.operator = operator;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Operator getOperator() {
        return operator;
    }

    public void setOperator(Operator operator) {
        this.operator = operator;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    
}
